-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Replace class strings with ::class constants #48047
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Psalm found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened here?
@@ -725,7 +725,7 @@ public static function init(): void { | |||
\OCP\Util::connectHook( | |||
'\OCA\Files_Sharing\API\Server2Server', | |||
'preLoginNameUsedAsUserName', | |||
'\OC\User\Database', | |||
\OC\User\Database::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should breaking the events:
https://3v4l.org/ccpQf
If you adjusted the original event to also no longer provide the \
old listeners will be broken.
Same for the listen()
emitter things.
Potential solution: strip leading slashes when listeners and emits are down inside Util/Emitter-trait
Summary
TODO
Checklist